<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Material extends Model
{
    protected $table = "material"; //指定表
    protected $primaryKey = "id"; //指定id字段
    public $timestamps = false; //关闭时间自动

    public function getQuestion(){
    	return $this->hasMany('App\Model\Questions','material','id');
    }

}
